﻿using HANS.WeChat.Entities.JsonEntity;
using System;

namespace HANS.WeChat.Entities
{
    public interface IWeChatJsonResult : IJsonRsult
    {
        /// <summary>
        /// 返回结果代码
        /// </summary>
        HANSReturnCode errcode { get; set; }
    }



    [Serializable]
    public class WeChatJsonResult : BaseJsonResult
    {
        public HANSReturnCode errcode { get; set; }

        /// <summary>
        /// 返回消息代码数字（同errcode枚举值）
        /// </summary>
        public override int ErrorCodeValue { get { return (int)errcode; } }
    }

}
